package com.baizhi.app.appcontroller;
import com.baizhi.app.appservice.CmfzAlbumAppService;
import com.baizhi.entity.CmfzAlbum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
@RequestMapping("app/album")
public class CmfzAlbumAppController {
    @Autowired
    private CmfzAlbumAppService cmfzAlbumAppService;
    @GetMapping("selectAnyAlbum")
    @ResponseBody
    public List<CmfzAlbum> selectAnyAlbum(String type){
        List<CmfzAlbum> cmfzAlbums = cmfzAlbumAppService.selectAnyAlbum(type);
        return cmfzAlbums;
    }
}
